package xiaoming;

import java.util.Scanner;

public class java_chapter5_JianDaTi_5 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num;
		String day="";
		do {
			System.out.print("please input an integer 1-7(end with 0):");
			num = in.nextInt();
			boolean bool =true;
			switch (num) {
			case 0:
				bool = false;
			case 1:
				day = "MON";
				break;
			case 2:
				day = "TUE";
				break;
			case 3:
				day = "WED";
				break;
			case 4:
				day = "THU";
				break;
			case 5:
				day = "FRI";
				break;
			case 6:
				day = "SAT";
				break;
			case 7:
				day = "SUN";
				break;
			default:
				System.out.println("please input a correct number");
				bool = false;
				break;
			} 
			if(bool) {
				System.out.println("today is "+day);
			}
		} while (num!= 0);
		System.out.println("program end");
	}
	
}
				
		
		
		
		
			
				
				
